//widgets
// import LayerTree from "./widgets/LayerTree/index.vue";
import FlightRoute from "./widgets/FlightRoute/index.vue";
import SelectorProperty from "./widgets/SelectorProperty/index.vue";
import MeasureTool from './widgets/MeasureTool/index.vue'
import SliceTool from './widgets/SliceTool/index.vue'

// components
import AgViewer from "./components/AgViewer/index.vue";
import AgTool from './components/AgTool/index.vue'
import AgPopup from "./components/AgPopup/index.vue";
import AgEChart from './components/AgEChart/index.vue'

import AgMessage from "./components/AgMessage/index.js"
import AgMessageBox from "./components/AgMessageBox/index.js"

export const components = {
  //widgets
  // LayerTree,
  FlightRoute,
  SelectorProperty,
  MeasureTool,
  SliceTool,
  // components
  AgViewer,
  AgTool,
  AgPopup,
  AgEChart
}

const MyComponentLibrary = {  
  install(app) {  
    Object.keys(components).forEach((name) => {
      app.component(name, components[name]);
    });
  },  
};  

export { AgMessage, AgMessageBox }
export default MyComponentLibrary;  